﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zmMoniter
{
    class Dam
    {
        public string sdamID;
        public string sdamBlock;
        public Deck deck;
        public float fmaxElv;
        public float fminX;
        public float fmaxX;
        public Extent extent;
        public ArrayList alPoint = new ArrayList();
        public Dam(string damID, string damBlock)
        {
            sdamID = damID;
            sdamBlock = damBlock;
            extent = new Extent();
            deck = new Deck("-1", sdamBlock, sdamID);
        }
        public void setDeck(Deck newdeck)
        {
            deck = newdeck;
        }
        public void setDamElv(float maxElv)
        {
            fmaxElv = maxElv;
        }
        public void setDamExtent(float minX, float maxX)
        {
            fminX = minX;
            fmaxX = maxX;
        }
        public void addPoint(Point pt, bool bIsPoint = true)
        {
            alPoint.Add(pt);
            if (bIsPoint)
                extent.upDate(pt);
        }
    }
}
